	{% if rows_cols %}
		<table 
			cellpadding="4" 
			cellspacing="0" class="noborder" style="width:100%;">
		{% for i in rows_cols|makeRangeFromListLength %}
			<tr>
			{% for col_list in rows_cols|listLookup:i %}
				<td class="grid" style="background-color:#{{row_colors|listLookup:i}};">
				{% if col_list %}
					{% for text in col_list %}
						{{text}}
					{% endfor %}
				{% else %}
				&nbsp; 
				{% endif %}
				</td>
			{% endfor %}
			</tr>
		{% endfor %}
		</table>
			{% if too_many_items_warning %}
				<div class="blurb">{{max_num_items}} / {{num_items_before_truncation}} {{too_many_items_warning}}</div>
			{% endif %}
	{% else %}
			<table cellpadding="4" cellspacing="0" class="noborder" style="width:100%">
			{% for i in num_grid_rows|makeRange %}
				<tr>
				{% for j in num_grid_cols|makeRange %}
					{% ifequal i middle_grid_row %}
						{% ifequal j middle_grid_col %}
							<td align="center" class="noborder" style="background-color:#{{row_colors|listLookup:i}};">
							{% if current_filter %}
								{{template_no_filter_results_message}}
							{% else %}
								{% if rakontu.hasNonDraftEntries %}
									{{template_no_match_for_selections}}
								{% else %}
									{{template_empty_rakontu_message}}
								{% endif %}
							{% endif %}
						{% else %}
							<td class="noborder" style="background-color:#{{row_colors|listLookup:i}};">
							&nbsp;
						{% endifequal %}
					{% else %}
						<td class="noborder" style="background-color:#{{row_colors|listLookup:i}};">
						&nbsp;
					{% endifequal %}
					</td>
				{% endfor %}
				</tr>
			{% endfor %}
			</table>
	{% endif %}
		
